import org.junit.Test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import util.JedisUtil;

public class test {
    @Test
    public void test1(){
        Jedis jedis = JedisUtil.openJedis();
        String username = jedis.get("username");
        String num = jedis.set("1","2");
        System.out.println(username);
    }

    @Test
    public void test2(){
        Jedis jedis = new Jedis("192.168.94.130",6379);
        String name = jedis.get("username");
        System.out.println(name);
    }
}
